<?php

class ShopController extends AController
{
    public $breadcrumbs;
    public $menu;
    public $_model;

    public function filters()
    {
        return array(
            'accessControl',
        );
    }

    public function accessRules()
    {
        return array(
            array('allow',
                'actions' => array('install', 'index'),
                'users' => array('*'),
            ),
            array('allow',
                'actions' => array('admin'),
                'users' => array('*')
            ),
            array('deny', // deny all other users
                'users' => array('*'),
            ),
        );
    }

    public function actionAdmin()
    {
        $this->render('admin', array());
    }

    public function actionIndex()
    {
        $this->redirect(array('//shop/products/index'));
    }
}
